
import { _decorator, Button, Component, Enum, EventHandheld, EventHandler, KeyCode, Node } from 'cc';
import { default_operate } from './default_operate';
import { key_bind_fun } from './key_bind_fun';
const { ccclass, property,integer } = _decorator;

/**操作界面控制器 */
@ccclass('operate_ui_ctrl')
export class operate_ui_ctrl extends Component {

    private keycode_tuple:[number,number] = [KeyCode.ALT_LEFT,KeyCode.ALT_RIGHT]
    @property(key_bind_fun)
    test1111:key_bind_fun[] = [];

    @property([Node])
    test_node:Node[] = [];
    
    @property([EventHandler])
    test_node2:EventHandler[] = [];
    
    @property(default_operate)
    default_operate:default_operate = null;

    start() {
        let but:Button;
        but.clickEvents;
        let a:EventHandler
        // this.test1[0].customEventData
    }

    //制作按钮监听事件 注册机制
    public add_event(){

    }

}


